//
//  MainVC.m
//  ATAInterview
//
//  Created by up72-17 on 2018/12/10.
//  Copyright © 2018 up72-17. All rights reserved.
//

#import "MainVC.h"

@interface MainVC ()

@end

@implementation MainVC

- (void)viewDidLoad {
    [super viewDidLoad];
    
    [[GlobalData sharedGlobalData] setQuestionIndex:0];
    [[GlobalData sharedGlobalData] setTotalQuestion:4];
    
    NSMutableArray *array = [NSMutableArray array];
    NSMutableDictionary *dic_1 = [NSMutableDictionary dictionary];
    [dic_1 setObject:@"请用1分钟的时间做一个自我介绍。" forKey:@"content"];
    [dic_1 setObject:@"0" forKey:@"questionsType"];
    [array addObject:dic_1];
    
    NSMutableDictionary *dic_2 = [NSMutableDictionary dictionary];
    [dic_2 setObject:@"请说明为什么你是所申请职位的合适人选，你为什么选择了我们，以及你未来3年的职业规划。" forKey:@"content"];
    [dic_2 setObject:@"0" forKey:@"questionsType"];
    [array addObject:dic_2];
    
    NSMutableDictionary *dic_3 = [NSMutableDictionary dictionary];
    [dic_3 setObject:@"请讲述一件你大学期间参与的一次团队活动？包括活动的整个过程以及你在当中起到的作用。" forKey:@"content"];
    [dic_3 setObject:@"0" forKey:@"questionsType"];
    [array addObject:dic_3];
    
    NSMutableDictionary *dic_4 = [NSMutableDictionary dictionary];
    [dic_4 setObject:@"谈一下你目前最想提升哪方面的能力，为什么是这项能力，以及你打算如何提升？" forKey:@"content"];
    [dic_4 setObject:@"0" forKey:@"questionsType"];
    [array addObject:dic_4];
    
    [[GlobalData sharedGlobalData] setQuestionInfo:array];
    
    
}

- (IBAction)backButtonAction:(id)sender {
    [self.navigationController popViewControllerAnimated:YES];
}

- (IBAction)buttonAction:(UIButton *)sender {
    if ([sender tag] == 0) {
        [[GlobalData sharedGlobalData] setIsSimulation:YES];
        SimulationMainVC *simulation = [[SimulationMainVC alloc] init];
        [self.navigationController pushViewController:simulation animated:YES];
    } else if ([sender tag] == 2) {//正式面试
        [[GlobalData sharedGlobalData] setIsSimulation:NO];
        InterviewDescriptionVC *interview = [[InterviewDescriptionVC alloc] init];
        [self.navigationController pushViewController:interview animated:YES];
    }
}


@end
